<div id="main-form">

	<? if($message > 0){ ?>
		<div id="message_box">
			<p class="img"></p>
			<p class="txt">
				<? if($message == 1){
						echo "You have successfully added a new group.";
					}elseif($message == 2){
						echo "You have successfully updated a group.";
					}
				?>
			</p>
		</div>

	<? }else{ ?>

		<form name="submitForm" id="submitForm" method="POST" action="<?=$_SERVER['REQUEST_URI']?>">
			<input type="hidden" name="id" id="id" value="<?=$group_id?>">
			<div>
				<ul class="singleColRows">
					<li class="leftcol">Name</li>
					<li class="rightcol">
						<input type="text" name="name" id="name" value="<?=$row['name']?>">
					</li>
				</ul>
				<ul class="singleColRows">
					<li class="leftcol">Address</li>
					<li class="rightcol">
						<textarea name="address" id="address" style="height:80px"><?=trim($row['address'])?></textarea>
					</li>
				</ul>
				<ul class="singleColRows">
					<li class="leftcol">Contact Nos.</li>
					<li class="rightcol">
						<textarea name="contact_nos" id="contact_nos" style="height:80px"><?=trim($row['contact_nos'])?></textarea>
					</li>
				</ul>
				<ul class="singleColRows">
					<li class="leftcol">Status</li>
					<li class="rightcol">
						<input type="radio" name="active" value="1" <?=($row['active'] == 1)?'checked':''?> > Active 
						<input type="radio" name="active" value="0" <?=($row['active'] == 0)?'checked':''?> > Inactive
					</li>
				</ul>
				<ul class="singleColRows">
					<li class="leftcol">&nbsp;</li>
					<li class="rightcol">
						<p class="buttons_elements">
							<input type="submit" class="form-button btn" id="submitBtn" value="Save">
							<input type="button" class="form-button btn" id="cancelBtn" value="Cancel">
						</p>
					</li>
				</ul>
			</div>
		</form>
		
	<? } ?>
</div>